//
//  YWDownloadMetaDataManager.h
//  maintain
//
//  Created by 郑想 on 15/12/22.
//  Copyright © 2015年 ewin. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "YWSingleton.h"

typedef NS_ENUM(NSUInteger, YWJsonRefreshType) {
    YWJsonRefreshTypeEquipmentRule = 1, // 维保规则
    YWJsonRefreshTypeBuilding = 2, // 楼盘数据
    YWJsonRefreshTypeEquipment = 3, // 设备数据
    YWJsonRefreshTypeEquipmentRuntime = 4, // 设备运行参数
    YWJsonRefreshTypeEquipmentType = 5, // 设备类型
};

@interface YWDownloadMetaDataManager : NSObject
YWSingletonH(Manager)

/**
 *  下载Json源数据
 */
- (void)serialDownloadDatasWithComplete:(void (^)(BOOL error))complete;
/**
 *  静态数据有更新时推送下载
 */
- (void)downloadDatasWithType:(YWJsonRefreshType)type;
/**
 *  设置里的数据更新，重新下载Json源数据
 */
- (void)refreshJsonDatasWithComplete:(void (^)(BOOL error))complete;

@end
